//
//  ___PROJECTNAMEASIDENTIFIER___AppDelegate.h
//  ___PROJECTNAME___
//
//  Created by ___FULLUSERNAME___ on ___DATE___.
//  Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <UIKit/UINavigationController.h>
#import <MediaPlayer/MediaPlayer.h>

#import "Room.h"
#import "RoomDelegate.h"

#import "ServerBrowserDelegate.h"
#import "ServerBrowser.h"

@class ___PROJECTNAMEASIDENTIFIER___ViewController;

@interface ___PROJECTNAMEASIDENTIFIER___AppDelegate : NSObject <
	UIApplicationDelegate,
	UIWebViewDelegate,
	UIImagePickerControllerDelegate,
	MPMediaPickerControllerDelegate,
	UINavigationControllerDelegate,
	RoomDelegate, 
	ServerBrowserDelegate
> {
    UIWindow *window;
    UIWebView *webView;
    ___PROJECTNAMEASIDENTIFIER___ViewController *viewController;
    NSString *dataPath;
    NSError *error;
    Room* chatRoom;
    ServerBrowser* serverBrowser;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet ___PROJECTNAMEASIDENTIFIER___ViewController *viewController;
@property (nonatomic, retain) IBOutlet UIWebView *webView;
@property (nonatomic, copy) NSString *dataPath;

@property (nonatomic,retain) Room* chatRoom;
@property (nonatomic,retain) ServerBrowser* serverBrowser;

- (void) unHook:(NSString*)hook;
- (void) initCache;
- (void) clearCache;

- (NSString *) newUUID;
- (NSString *)escapeString: (NSString*)s;
- (NSString *)unescapeString: (NSString*)s;

- (void)connectWithServer:(NSString*)name;

@end

